package com.icesoft.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.icesoft.framework.core.annotation.Entity;
import com.icesoft.framework.core.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_user_role")
@AllArgsConstructor
@NoArgsConstructor
@Entity(module = "system", describe = "用户角色中间表")
public class UserRole extends BaseEntity {

	@TableField
	@Column(value = "user_id", comment = "用户Id", length = 40, type = MySqlTypeConstant.BIGINT)
	private Long userId;

	@TableField
	@Column(value = "role_id", comment = "角色Id", length = 40, type = MySqlTypeConstant.BIGINT)
	private Long roleId;
}
